<?php namespace App\Admin\Access\Operation\Listeners;

use App\Core\Service\Listeners\UpdateListener as Base;
use Input;

class UpdateListener extends Base {
    
    public function onUpdateGeneratedData(){
        $data = $this->service->updateData;
        $data['log_config'] = json_encode([
            'data_source' => Input::get('data_source', ''),
            'data_id' => Input::get('data_id', ''),
            'data_name' => Input::get('data_name', '')
        ]);
        $this->service->updateData = $data;
    }
}